package com.homeWork;

public class Truck extends Vehicle {
    private double payload;
    public Truck(){}
    public Truck(int wheels, double weight,double payload){
        super(wheels,weight);
        this.payload=payload;
    }
    public void setPayload(){
        this.payload=payload;
    }
    public double getPayload(){
        return payload;
    }
    public void print(){
        super.print();
        System.out.println(getPayload());
    }
}
